<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch"
          action="${request.getContextPath()}/productionStepScrapDetail/productionStepScrapDetail" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="productionStepScrapDetail"/>
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel"/>
            <label>生产日期：</label>
            <input type="text" name="startTime" value="${startTime}" data-toggle="datepicker"
                   placeholder="FROM" size="11">
            <input type="text" name="endTime" value="${endTime}" data-toggle="datepicker"
                   placeholder="TO" size="11">&nbsp;
            <label>产品描述：</label>
            <g:select name="type1" from="${productionStepScrapDetailType}" data-toggle="selectpicker" data-width="130"
                      data-live-search="true" optionKey="reserved6" optionValue="reserved6" value="${type1}"
                      noSelection="['': '-- All --']"/>&nbsp;
            <label>生产订单：</label>
            <g:select name="docId" from="${productionStepScrapDetailDoc}" data-toggle="selectpicker" data-width="130"
                      data-live-search="true" optionKey="doc_id" optionValue="doc_id" value="${docId}"
                      noSelection="['': '-- All --']"/>&nbsp;
            <label>工序：</label>
            <g:select name="stepName" from="${productionStepScrapDetailStep}" data-toggle="selectpicker"
                      data-width="130"
                      data-live-search="true" optionKey="name" optionValue="name" value="${stepName}"
                      noSelection="['': '-- All --']"/>&nbsp;
            <label>报废码：</label>&nbsp;
            <g:select name="scrapCode" from="${productionStepScrapDetailScrapCode}" data-toggle="selectpicker" data-width="130"
                  data-live-search="true" optionKey="description" optionValue="description" value="${scrapCode}"
                  noSelection="['': '-- All --']"/>
            <br /><br />
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue"
                    onclick="javascript:bjuiExportExl('#pagerForm', '${request.getContextPath()}/productionStepScrapDetail/exportExcel')"
                    data-icon="file-excel-o" title="导出Excel">导出</button>
        </div>
    </form>
</div>

<div class="bjui-pageContent tableContent">
    <g:if test="${productionStepScrapDetail.size() > 0}">
        <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr id="t1">
                <g:each in="${tableHeadList}" status="j" var="headInstance">
                    <g:if test="${headInstance != 'RN'}">
                        <th><g:message code="${headInstance}" default="${headInstance}"/></th>
                    </g:if>
                </g:each>
            </tr>
            </thead>
            <tbody>
            <g:each in="${productionStepScrapDetail}" status="i" var="dataInstance">
                <tr>
                    <g:each in="${tableHeadList}" status="j" var="headInstance">
                        <g:if test="${headInstance != 'RN'}">
                            <td>${dataInstance["${headInstance}"]}</td>
                        </g:if>
                    </g:each>
                </tr>
            </g:each>
            </tbody>
        </table>
    </g:if>
    <g:else>
        <g:render template="../template/emptyPanel"/>
    </g:else>
</div>
<g:render template="../template/51pagination"/>